﻿/*
* Copyright (c) 2010-2012 Tesla Engine Group
* 
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* 
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

using System;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Graphics;

namespace Tesla.Xna.Content.Loaders {
    public class TeslaProcessorContext : ContentProcessorContext {
        private TeslaContentLogger _logger;
        private GraphicsProfile _profile;
        private TargetPlatform _platform;
        private OpaqueDataDictionary _params;

        public override string IntermediateDirectory {
            get {
                return String.Empty;
            }
        }

        public override ContentBuildLogger Logger {
            get {
                return _logger;
            }
        }

        public override string OutputDirectory {
            get {
                return String.Empty;
            }
        }

        public override string OutputFilename {
            get {
                return String.Empty;
            }
        }

        public override OpaqueDataDictionary Parameters {
            get {
                return _params;
            }
        }

        public override TargetPlatform TargetPlatform {
            get {
                return _platform;
            }
        }

        public override GraphicsProfile TargetProfile {
            get {
                return _profile;
            }
        }

        public override string BuildConfiguration {
            get {
                return String.Empty;
            }
        }

        public TeslaProcessorContext() {
            _platform = TargetPlatform.Windows;
            _profile = GraphicsProfile.HiDef;
            _params = new OpaqueDataDictionary();
            _logger = new TeslaContentLogger();
        }

        public TeslaProcessorContext(TargetPlatform platform) {
            _platform = platform;
            _profile = GraphicsProfile.HiDef;
            _params = new OpaqueDataDictionary();
            _logger = new TeslaContentLogger();
        }

        public TeslaProcessorContext(TargetPlatform platform, GraphicsProfile profile) {
            _platform = platform;
            _profile = profile;
            _params = new OpaqueDataDictionary();
            _logger = new TeslaContentLogger();
        }

        public override void AddDependency(string filename) {

        }

        public override void AddOutputFile(string filename) {

        }

        public override TOutput BuildAndLoadAsset<TInput, TOutput>(ExternalReference<TInput> sourceAsset, string processorName, OpaqueDataDictionary processorParameters, string importerName) {
            throw new NotImplementedException();
        }

        public override ExternalReference<TOutput> BuildAsset<TInput, TOutput>(ExternalReference<TInput> sourceAsset, string processorName, OpaqueDataDictionary processorParameters, string importerName, string assetName) {
            throw new NotImplementedException();
        }

        public override TOutput Convert<TInput, TOutput>(TInput input, string processorName, OpaqueDataDictionary processorParameters) {
            throw new NotImplementedException();
        }
    }
}
